package com.baidu.bas.upms;

import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

import javax.sql.DataSource;

/**
 * @author liuzhenchuan@foxmail.com
 * @date 2021/2/5
 */
@Configuration
@ConditionalOnClass({DataSource.class, RequestMappingHandlerMapping.class})
@AutoConfigureAfter({DataSourceAutoConfiguration.class})
public class UpmsConfiguration {

    /**
    @Resource
    private EruptUserService eruptUserService;

    @ConditionalOnMissingBean(IUserService.class)
    IUserService iUserServiceProvider(){
        return eruptUserService;
    }
    **/

}
